<template>
	<view :style="viewColor" class="order-submission">
		<view class="allAddress" @click="onAddress" v-if="is_virtual == 0">
			<view class='address acea-row row-between-wrapper'>
				<view class='addressCon' v-if="addressInfo.real_name">
					<view class='name'>{{addressInfo.real_name}}
						<text class='phone'>{{addressInfo.phone}}</text>
					</view>
					<view>
						<text class='default t-color'
							v-if="addressInfo.is_default">默认</text>{{addressInfo.province}}{{addressInfo.city}}{{addressInfo.district}}{{addressInfo.street || ''}}{{addressInfo.detail}}
					</view>
				</view>
				<navigator v-else :url="'/pages/users/user_address/index?user_product_id='+id" hover-class="none" class='addressCon'>
					<view class='setaddress'>设置收货地址</view>
				</navigator>
				<view class='iconfont icon-jiantou'></view>
			</view>
			<view class='line'>
				<image :src="`${domain}/static/images/line.jpg`"></image>
			</view>
		</view>
		<view class="product_detail">
			<view class="store-title">
				<text class="iconfont icon-shangjiadingdan" style="color: #FFE103;"></text>
				<view class="txt" v-if="type == 1">{{product_detail.author.nickname || ''}}</view>
				<view class="txt" v-else>{{product_detail.user.nickname || ''}}</view>
			</view>
			<view class="product" v-if="type == 1">
				<view class="product_thumb">
					<image :src="product_detail.image[0]" />
				</view>
				<view class="product_info">
					<view class="product_title line2">{{product_detail.content || ''}}</view>
					<view class="product_price">¥{{product_detail.price || 0}}</view>
				</view>
			</view>
			<view class="product" v-else>
				<view class="product_thumb">
					<image :src="product_detail.thumb" />
				</view>
				<view class="product_info">
					<view class="product_title line1">{{product_detail.title || ''}}</view>
					<view class="product_keywords">{{product_detail.keywords || ''}}</view>
					<view class="product_price">¥{{product_detail.attr[0].price || 0}}</view>
				</view>
			</view>
			<view class="order_delivery">
				<view class="order_kd_type">配送方式</view>
				<view class="order_kd">{{is_virtual == 1 ? '虚拟发货' : '快递配送'}}</view>
			</view>
			<view class='item acea-row row-between-wrapper'>
				<view style="width: 100px;">备注信息</view>
				<input placeholder-class='placeholder' name="mark" placeholder='选填备注信息' v-model="mark"></input>
			</view>
			<view class='order_total'>
				<view class="order_total_i" v-if="type == 1"><text class="order_total_num">共1件</text>　小计:　<text class="order_total_price">¥{{product_detail.price || 0}}</text></view>
				<view class="order_total_i" v-else><text class="order_total_num">共1件</text>　小计:　<text class="order_total_price">¥{{product_detail.attr[0].price || 0}}</text></view>
			</view>
		</view>
		<view class='wrapper'>
			<view class='item'>
				<view class='item-tips'>支付方式</view>
				<view class='list'>
					<!-- #ifdef H5 -->
					<view class='payItem acea-row row-middle' :class='active==index ?"on":""' @tap='payItem(index)'
						v-for="(item,index) in cartArr" :key='index' v-if="item.payStatus==1">
						<view class='name acea-row row-center-wrapper'>
							<view class='iconfont animated'
								:class='(item.icon) + " " + (animated==true&&active==index ?"bounceIn":"")'></view>
							{{item.name}}
						</view>
						<view class='tip'>
							{{item.title}}
							<block v-if="item.value == 'balance'">
								{{userInfo.now_money}}
							</block>
						</view>
					</view>
					<!-- #endif -->
					<!-- #ifdef MP || APP-PLUS -->
					<view class='payItem acea-row row-middle' @tap='payItem(index)'
						v-for="(item,index) in cartArr" :key='index' v-if="item.payStatus==1">
						<view class="payItem_checked">
							<image v-if="active==index" :src="domain + '/uploads/default/20230717/fd7c51416af8cee8f5eae95823713960.png'" />
							<image v-else :src="domain + '/uploads/default/20230717/b87e8e4b1cf6b9139f4e913311a74183.png'" />
						</view>
						<view class='name acea-row row-center-wrapper'>
							<view class='iconfont animated'
								:class='(item.icon) + " " + (animated==true&&active==index ?"bounceIn":"")'></view>
							{{item.name}}
						</view>
						<view class='tip'>
							{{item.title}}
							<block v-if="item.value == 'balance'">
								{{userInfo.now_money}}
							</block>
						</view>
					</view>
					<!-- #endif -->
				</view>
			</view>
		</view>
		<view class="submit-order">
			<view class="submit-total-price" v-if="type == 1">合计：<view>¥{{product_detail.price}}</view></view>
			<view class="submit-total-price" v-else>合计：<view>¥{{product_detail.attr[0].price}}</view></view>
			<view class="submit-button" @tap="SubOrder">提交订单</view>
		</view>
		<addressWindow ref="addressWindow" @changeTextareaStatus="changeTextareaStatus" :address='address'
			:pagesUrl="pagesUrl" @OnChangeAddress="OnChangeAddress" @changeClose="changeClose"></addressWindow>
		<authorize @onLoadFun="onLoadFun" :isAuto="isAuto" :isShowAuth="isShowAuth" @authColse="authColse"></authorize>
	</view>
</template>

<script>
	import {
		getUserProductDetail,
		payUserProduct
	} from "@/api/user_product"
	import {
		getAddressDetail,
		getAddressList,
		getUserInfo,
		createCommunityOrder
	} from '@/api/user.js';
	import { plantDetailApi } from '@/api/community.js';
	import { mapGetters } from "vuex";
	import { configMap } from "@/utils";
	import { openUserProductRemind } from '@/utils/SubscribeMessage.js';
	import parser from "@/components/jyf-parser/jyf-parser";
	import authorize from '@/components/Authorize';
	import addressWindow from '@/components/addressWindow';
	import { HTTP_REQUEST_URL } from '@/config/app';
	const app = getApp();
	export default {
		components: {
			"jyf-parser": parser,
			authorize,
			addressWindow
		},
		data() {
			return {
				isAuto: false, //没有授权的不会自动授权
				isShowAuth: false, //是否隐藏授权
				userInfo: {},
				addressId: 0,
				addressInfo: {},
				textareaStatus: true,
				address: {
					address: false
				}, //地址组件
				pagesUrl: '',
				id: 0,
				post: {},
				domain: HTTP_REQUEST_URL,
				mark: '',
				product_detail: {},
				//支付方式
				cartArr: [{
						"name": "微信支付",
						"icon": "icon-weixin2",
						value: 'weixin',
						title: '微信快捷支付',
						payStatus: 1,
					},
					{
						name: "支付宝支付",
						icon: "icon-icon34",
						// #ifdef H5 || APP-PLUS
						value: 'alipay',
						// #endif
						// #ifdef MP
						value: 'alipayQr',
						// #endif
						title: '支付宝支付',
						payStatus: this.$store.getters.globalData.alipay_open
					},
					{
						"name": "余额支付",
						"icon": "icon-icon-test",
						value: 'balance',
						title: '可用余额:',
						payStatus: this.$store.getters.globalData.yue_pay_status,
					},
					{
						"name": "线下支付",
						"icon": "icon-yinhangqia",
						value: 'offline',
						title: '线下支付',
						payStatus: 2,
					},
				],
				active: 0, //支付方式切换
				animated: false,
				payType: 'weixin', //支付方式
				is_virtual: 0, // 0实物订单 1虚拟订单
				type: 0, // 0好货 1服务
			};
		},
		beforeDestroy() {
		},
		computed: {...configMap({sys_intention_agree:''},mapGetters(['isLogin','viewColor','keyColor']))
		},
		onLoad(options) {
			// #ifdef H5
			this.from = this.$wechat.isWeixin() ? 'weixin' : 'h5'
			// #endif
			// #ifdef MP
			this.from = 'routine'
			// #endif
			// #ifdef APP-PLUS
			this.from = 'weixin'
			// #endif
			this.is_virtual = options.is_virtual || 0
			this.type = options.type || 0
			if (this.isLogin) {
				if (this.payType == 'weixin') {
					this.payType = this.from
				}
				this.id = options.id
				if (options.is_virtual == 0) {
					this.getaddressInfo();
				}
				if (options.type == 1) {
					this.getCommunityDetail();
				} else {
					this.getUserProductDetailZ();
				}
				this.$nextTick(function() {
					if (options.is_virtual == 0) {
						this.$refs.addressWindow.getAddressList();
					}
					this.getUserInfo()
				})
			} else {
				this.isAuto = true;
				this.isShowAuth = true
			}
		},
		onShow() {
			if (this.is_virtual == 0) {
				this.getaddressInfo();
			}
			if (this.type == 1) {
				this.getCommunityDetail();
			} else {
				this.getUserProductDetailZ();
			}
		},
		onReady() {},
		methods: {
			SubOrder: function(e) {
				let that = this,
					data = {};
				if (!that.payType) return that.$util.Tips({
					title: '请选择支付方式'
				});
				if (that.is_virtual == 0 && !that.addressId) return that.$util.Tips({
					title: '请选择收货地址'
				});
				if (that.type == 1) {
					data = {
						type: this.payType,
						price: this.product_detail.price,
						community_id: that.id,
						mark: this.mark,
						// #ifdef H5
						return_url: 'http://' + window.location.host + '/pages/users/order_list/index',
						// #endif
					};
				} else {
					data = {
						user_address_id: this.addressId,
						type: this.payType,
						attr_name: this.product_detail.attr[0].name,
						price: this.product_detail.attr[0].price,
						num: 1,
						mark: this.mark,
						// #ifdef H5
						return_url: 'http://' + window.location.host + '/pages/users/order_list/index',
						// #endif
					};
				}
				if (data.mark && this.isEmojiCharacter(data.mark[Object.keys(data.mark)[0]])) {
					that.$util.Tips({
						title: '备注不允许输入表情！'
					});
					return;
				}
				if (data.payType == 'balance' && parseFloat(that.userInfo.now_money) < parseFloat(data.price))
					return that.$util
						.Tips({
							title: '余额不足！'
						});
				openUserProductRemind().then(res=>{
					uni.showLoading({
						title: '订单支付中',
						mask: true
					});
					if (that.type == 1) {
						createCommunityOrder(data).then(res=>{
							that.callPay(res);
						})
					} else {
						payUserProduct(that.id, data).then(res=>{
							that.callPay(res);
						}).catch(err=>{
							that.$util.Tips({title:err});
						})
					}
				})
			},
			// 调用支付
			callPay(res) {
				let that = this, status = res.data.type,
					jsConfig = res.data.config,
					goPages = '/pages/extends/user_product/my_order';
				if (that.type == 1) {
					goPages = goPages + '?order_type=1';
				}
				switch (status) {
					case 'ORDER_EXIST':
					case 'EXTEND_ORDER':
					case 'PAY_ERROR':
					case 'error':
						uni.hideLoading();
						return that.$util.Tips({
							title: res.message
						}, {
							tab: 5,
							url: goPages
						});
						break;
					case 'success':
						uni.hideLoading();
						return that.$util.Tips({
							title: res.message,
							icon: 'success'
						}, {
							tab: 5,
							url: goPages
						});
						break;
					case 'alipay':
					case "alipayQr":
						uni.hideLoading();
						that.$emit('onChangeFun', {
							action: 'payClose'
						});
						uni.navigateTo({
							url: '/pages/order_pay_back/index?keyCode='+callback_key+'&url='+jsConfig+'&type=10'
						})
						return;
						break;
						// #ifndef MP
					case "wechat":
					case "weixin":
					case "weixinApp":
						jsConfig.timeStamp = jsConfig.timestamp;
						// #ifndef APP-PLUS
						that.$wechat.pay(jsConfig).then(res => {
							return that.$util.Tips({
								title: res.message,
								icon: 'success'
							}, {
								tab: 4,
								url: goPages
							});
						}).catch(res => {
							if (res.errMsg == 'chooseWXPay:cancel') return that.$util.Tips({
								title: '取消支付'
							}, {
								tab: 5,
								url: goPages
							});
						})
						// #endif
						// #ifdef APP-PLUS
						let mp_pay_name=''
						if(uni.requestOrderPayment){
							mp_pay_name='requestOrderPayment'
						}else{
							mp_pay_name='requestPayment'
						}
						uni[mp_pay_name]({
							provider: 'wxpay',
							orderInfo: jsConfig,
							success: (e) => {
								let url = goPages;
								return that.$util.Tips({
									title: '支付成功',
									icon: 'success'
								}, {
									tab: 4,
									url: url
								});
							},
							fail: (e) => {
								uni.showModal({
									content: "支付失败",
									showCancel: false,
									success: function(res) {
										let url = goPages;
										uni.redirectTo({
											url: url
										})
									}
								})
							},
							complete: () => {
								uni.hideLoading();
							},
						});
						// #endif
						break;
						// #endif
						// #ifdef MP
					case "routine":
						jsConfig.timeStamp = jsConfig.timestamp;
						let mp_pay_name=''
						if(uni.requestOrderPayment){
							mp_pay_name='requestOrderPayment'
						}else{
							mp_pay_name='requestPayment'
						}
						uni[mp_pay_name]({
							...jsConfig,
							success: function(res) {
								uni.hideLoading();
								return that.$util.Tips({
									title: '支付成功',
									icon: 'success'
								}, {
									tab: 5,
									url: goPages
								});
							},
							fail: function(e) {
								uni.hideLoading();
								return that.$util.Tips({
									title: '取消支付'
								}, {
									tab: 5,
									url: goPages
								});
							},
						})
						break;
						// #endif
					case "balance":
						uni.hideLoading();
						console.log(res, goPages);
						//余额不足
						return that.$util.Tips({
							title: res.data.msg
						}, {
							tab: 5,
							url: goPages
						});
						break;
						// #ifdef H5
					case 'h5':
						let host = window.location.protocol + "//" + window.location.host;
						let url = `${host}/pages/users/user_payment/index`
						let eUrl = encodeURIComponent(url)
						let jsurl = jsConfig.mweb_url || jsConfig.h5_url
						let locations = `${jsurl}&redirect_url=${eUrl}`
						setTimeout(() => {
							location.href = locations;
						}, 100);
						break;
						// #endif
						// #ifdef APP-PLUS
					case 'alipayApp':
						uni.requestPayment({
							provider: 'alipay',
							orderInfo: jsConfig,
							success: (e) => {
								return that.$util.Tips({
									title: '支付成功',
									icon: 'success'
								}, {
									tab: 5,
									url: goPages
								});
							},
							fail: (e) => {
								uni.showModal({
									content: "支付失败",
									showCancel: false,
									success: function(res) {
										uni.redirectTo({
											url: goPages
										})
									}
								})
							},
							complete: () => {
								uni.hideLoading();
							},
						});
						break;
						// #endif
				}
			},
			getUserProductDetailZ() {
				let that = this;
				getUserProductDetail(that.id, {status: 1, is_show: 1}).then(res=>{
					that.product_detail = res.data
					that.$set(that, 'product_detail', that.product_detail);
				}).catch(err=>{
					return that.$util.Tips({title: err});
				})
			},
			// 服务详情
			getCommunityDetail() {
				let that = this;
				plantDetailApi(that.id).then(res=>{
					that.product_detail = res.data
					that.$set(that, 'product_detail', that.product_detail);
				})
			},
			changeTextareaStatus: function() {
				this.textareaStatus = true;
			},
			onAddress: function() {
				let that = this;
				if(that.addressInfo.real_name){
					that.textareaStatus = false;
					that.address.address = true;
					that.pagesUrl = '/pages/users/user_address/index?user_product_id=' + this.id;
				}else{
					uni.navigateTo({
						url: `/pages/users/user_address/index?user_product_id=${this.id}`,
					});
				}
			},
			/**
			 * 选择地址后改变事件
			 * @param object e
			 */
			OnChangeAddress: function(e) {
				this.textareaStatus = true;
				this.addressId = e;
				this.address.address = false;
				this.getaddressInfo();
			},
			/*
			 * 获取默认收货地址或者获取某条地址信息
			 */
			getaddressInfo: function() {
				let that = this;
				if (that.addressId) {
					getAddressDetail(that.addressId).then(res => {
						res.data.is_default = parseInt(res.data.is_default);
						that.addressInfo = res.data || {};
						that.addressId = res.data.address_id || 0;
						that.address.addressId = res.data.address_id || 0;
						that.post = {real_name: res.data.real_name, phone: res.data.phone}
					})
				} else {
					getAddressList().then(res => {
						that.addressInfo = res.data.list.length > 0 ? res.data.list[0] : {};
						that.addressId = res.data.list.length > 0 ? res.data.list[0].address_id : 0;
						that.address.addressId = res.data.list.length > 0 ? res.data.list[0].address_id : 0;
						that.post = res.data.list.length > 0 ? {real_name: res.data.list[0].real_name,phone:res.data.list[0].phone } : {real_name: '', phone: ''}
					})
				}
			},
			// 关闭地址弹窗；
			changeClose: function() {
				this.$set(this.address, 'address', false);
			},
			// 获取个人信息
			getUserInfo() {
				getUserInfo().then(res => {
					this.userInfo = res.data
				})
			},
			payItem: function(e) {
				let that = this;
				let active = e;
				that.active = active;
				that.animated = true;
				that.payType = that.cartArr[active].value;
				if (that.payType == 'weixin') {
					that.payType = that.from
				}
			},
			isEmojiCharacter: function(substring) {
				if (substring) {
					for (var i = 0; i < substring.length; i++) {
						var hs = substring.charCodeAt(i);
						if (0xd800 <= hs && hs <= 0xdbff) {
							if (substring.length > 1) {
								var ls = substring.charCodeAt(i + 1);
								var uc = ((hs - 0xd800) * 0x400) + (ls - 0xdc00) + 0x10000;
								if (0x1d000 <= uc && uc <= 0x1f77f) {
									return true;
								}
							}
						} else if (substring.length > 1) {
							var ls = substring.charCodeAt(i + 1);
							if (ls == 0x20e3) {
								return true;
							}
						} else {
							if (0x2100 <= hs && hs <= 0x27ff) {
								return true;
							} else if (0x2B05 <= hs && hs <= 0x2b07) {
								return true;
							} else if (0x2934 <= hs && hs <= 0x2935) {
								return true;
							} else if (0x3297 <= hs && hs <= 0x3299) {
								return true;
							} else if (hs == 0xa9 || hs == 0xae || hs == 0x303d || hs == 0x3030 ||
								hs == 0x2b55 || hs == 0x2b1c || hs == 0x2b1b ||
								hs == 0x2b50) {
								return true;
							}
						}
					}
				}
			},
			// 授权回调
			onLoadFun: function() {
				this.isShowAuth = false;
				return uni.switchTab({
					url: '/pages/user/index'
				});
			},
			// 授权关闭
			authColse: function(e) {
				this.isShowAuth = e
			}
		}
	}
</script>

<style scoped lang="scss">
	::v-deepcheckbox .uni-checkbox-input.uni-checkbox-input-checked,
	::v-deepcheckbox .wx-checkbox-input.wx-checkbox-input-checked {
	  border: 1px solid var(--view-theme)!important;
	  background-color: var(--view-theme)!important;
	  color: #fff!important;
	}
	.order-submission {
		padding-bottom: 110rpx;
	}
	.order-submission .line {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 3rpx;
	}
	.order-submission .line image {
		width: 100%;
		height: 100%;
		display: block;
	}
	.order-submission .address {
		padding: 28rpx 30rpx;
		background-color: #fff;
		box-sizing: border-box;
	}
	.order-submission .address .addressCon {
		width: 610rpx;
		font-size: 26rpx;
		color: #666;
	}
	.order-submission .address .addressCon .name {
		font-size: 30rpx;
		color: #282828;
		font-weight: bold;
		margin-bottom: 10rpx;
	}
	.order-submission .address .addressCon .name .phone {
		margin-left: 50rpx;
	}
	.order-submission .address .addressCon .default {
		margin-right: 8rpx;
		background: #FFE103;
		border-radius: 15rpx;
		font-size: 20rpx;
		font-weight: 400;
		color: #0C0C0C;
		line-height: 28rpx;
		padding: 2rpx 10rpx;
	}
	.t-color{
		color: var(--view-theme);
	}
	.order-submission .address .addressCon .setaddress {
		color: #333;
		font-size: 28rpx;
	}
	.order-submission .address .iconfont {
		font-size: 35rpx;
		color: #707070;
	}
	.order-submission .allAddress {
		width: 100%;
	}
	.order-submission .allAddress .nav {
		width: 710rpx;
		margin: 0 auto;
	}
	.order-submission .allAddress .nav .item {
		width: 355rpx;
	}
	.order-submission .allAddress .nav .item.on {
		position: relative;
		width: 250rpx;
	}
	.order-submission .allAddress .nav .item.on::before {
		position: absolute;
		bottom: 0;
		content: "快递配送";
		font-size: 28rpx;
		display: block;
		height: 0;
		width: 336rpx;
		border-width: 0 20rpx 80rpx 0;
		border-style: none solid solid;
		border-color: transparent transparent #fff;
		z-index: 2;
		border-radius: 7rpx 30rpx 0 0;
		text-align: center;
		line-height: 80rpx;
	}
	.order-submission .allAddress .nav .item:nth-of-type(2).on::before {
		content: "到店核销";
		border-width: 0 0 80rpx 20rpx;
		border-radius: 30rpx 7rpx 0 0;
	}
	.order-submission .allAddress .nav .item.on2 {
		position: relative;
	}
	.order-submission .allAddress .nav .item.on2::before {
		position: absolute;
		bottom: 0;
		content: "到店核销";
		font-size: 28rpx;
		display: block;
		height: 0;
		width: 400rpx;
		border-width: 0 0 60rpx 60rpx;
		border-style: none solid solid;
		border-color: transparent transparent #f7c1bd;
		border-radius: 40rpx 6rpx 0 0;
		text-align: center;
		line-height: 60rpx;
	}
	.order-submission .allAddress .nav .item:nth-of-type(1).on2::before {
		content: "快递配送";
		border-width: 0 60rpx 60rpx 0;
		border-radius: 6rpx 40rpx 0 0;
	}
	.order-submission .allAddress .address {
		height: 150rpx;
		margin: 0 auto;
	}
	.order-submission .allAddress .line {
		margin: 0 auto;
	}
	.product_detail {
		padding: 0 30rpx;
		margin-top: 20rpx;
		background-color: #fff;
		.store-title {
			padding: 20rpx 0;
			// border-bottom: 1px solid #F0F0F0;
			display: flex;
			align-items: center;
			.txt {
				margin-left: 8rpx;
				font-size: 28rpx;
				font-weight: 400;
				color: #333333;
				line-height: 40rpx;
			}
		}
		.product {
			display: flex;
			flex-wrap: nowrap;
			padding: 24rpx 0;
			.product_thumb {
				width: 170rpx;
				height: 170rpx;
				border-radius: 10rpx;
				image {
					width: 170rpx;
					height: 170rpx;
					border-radius: 10rpx;
				}
			}
			.product_info {
				margin-left: 20rpx;
				.product-title {
					font-size: 30rpx;
					font-weight: 500;
					color: #333333;
					line-height: 45rpx;
				}
				.product_keywords {
					margin-top: 10rpx;
					font-size: 24rpx;
					font-weight: 500;
					color: #A9A9A9;
					line-height: 24rpx;
				}
				.product_price {
					margin-top: 20rpx;
					font-size: 24rpx;
					font-weight: 500;
					color: #F50402;
					line-height: 34rpx;
				}
			}
		}
		.order_delivery {
			padding: 27rpx 0;
			font-size: 30rpx;
			color: #282828;
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex-wrap: nowrap;
			.order_kd {
				color: #999;
			}
		}
		.item {
			padding: 27rpx 0;
			font-size: 30rpx;
			color: #282828;
			display: flex;
			align-items: center;
			justify-content: space-between;
			flex-wrap: nowrap;
			input{
				flex: 1;
				height: 100%;
				margin-left: 20rpx;
				text-align: right;
			}
		}
		.order_total {
			display: flex;
			justify-content: flex-end;
			// padding-right: 30rpx;
			padding-bottom: 30rpx;
			.order_total_i {
				font-size: 30rpx;
				font-weight: 400;
				color: #191919;
				line-height: 38rpx;
				.order_total_num {
					color: #939393;
				}
				.order_total_price {
					font-size: 32rpx;
					font-weight: 500;
					color: #F1242C;
					line-height: 38rpx;
				}
			}
		}
	}
	.wrapper {
		padding: 0rpx 30rpx;
		margin-top: 20rpx;
		background-color: #ffff;
		.item-tips {
			padding: 40rpx 0 30rpx;
			font-size: 32rpx;
			font-weight: 500;
			color: #2C2C2C;
			line-height: 44rpx;
		}
		.payItem {
			display: flex;
			align-items: center;
			flex-wrap: nowrap;
			justify-content: space-between;
			// border: 1px solid #eee;
			border-radius: 6rpx;
			height: 86rpx;
			width: 100%;
			box-sizing: border-box;
			font-size: 28rpx;
			color: #282828;
			padding: 30rpx 0;
			box-shadow: inset 0rpx -1rpx 0rpx 0rpx #E8E8E8;
			.payItem_checked {
				width: 32rpx;
				height: 32rpx;
				margin-right: 22rpx;
				image {
					width: 32rpx;
					height: 32rpx;
				}
			}
			.name {
				width: 50%;
				text-align: center;
				border-right: 1px solid #eee;
				justify-content: left;
				// padding-left: 80rpx;
				.iconfont {
					width: 44rpx;
					height: 44rpx;
					border-radius: 50%;
					text-align: center;
					line-height: 44rpx;
					background-color: #fe960f;
					color: #fff;
					font-size: 30rpx;
					margin-right: 15rpx;
				}
				.iconfont.icon-weixin2{
					background-color: #41b035;
				}
				.iconfont.icon-icon34 {
					background-color: #4295D5;
				}
			}
			.tip{
				width: 49%;
				text-align: center;
				font-size: 26rpx;
				color: #aaa;
			}
		}
		.payItem.on {
			// border-color: var(--view-theme);
			// color: var(--view-theme);
		}
	}
	.submit-order {
		width: 100%;
		height: 100rpx;
		height: 100rpx;
		background-color: #fff;
		padding: 0 0 0 30rpx;
		font-size: 28rpx;
		color: #333;
		box-sizing: border-box;
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 30;
		display: flex;
		align-items: center;
		flex-wrap: nowrap;
		justify-content: space-between;
		.submit-total-price {
			font-size: 28rpx;
			font-weight: 400;
			color: #323232;
			line-height: 40rpx;
			display: flex;
			flex-wrap: nowrap;
			align-items: center;
			view {
				font-size: 30rpx;
				font-weight: 500;
				color: #F50402;
				line-height: 42rpx;
			}
		}
		.submit-button {
			font-size: 30rpx;
			color: #1C211D;
			width: 240rpx;
			height: 100%;
			background-color: var(--view-theme);
			text-align: center;
			line-height: 70rpx;
			padding: 0rpx 64rpx;
			display: flex;
			align-items: center;
			white-space: nowrap;
		}
	}
</style>